package org.example.memora.service;

import org.example.memora.common.result.PageResult;
import org.example.memora.entity.HashTag;

import java.util.List;

public interface HashTagService {
    boolean existsAllByIds(Iterable<Integer> tagIds);

    Integer createHashtagAndReturnId(String name);
    HashTag getById(Integer id);

    HashTag createHashtag(String name);

    boolean createHashtags(List<String> names);

    boolean updateHashtag(HashTag hashtag);

    List<HashTag> getHashtagsByName(String name);

    List<HashTag> listAll();

    List<HashTag> createByContent(String content1);
    PageResult listHashtagsByPage(int page, int size);

}
